#ifndef _VN_EXTRA_MATH_H_
#define _VN_EXTRA_MATH_H_

#include "Vector2.h"
#include <cmath>

class ExtraMath
{
public:
	virtual ~ExtraMath(){}

	static float distance(const vn::Vector2& p_lhs, const vn::Vector2& p_rhs)
	{
		float dx = p_lhs.x - p_rhs.y;
		float dy = p_lhs.y - p_rhs.y;
		return sqrt(dx * dx + dy * dy);
	}

	static float distance(const float f1, const float f2)
	{
		return sqrt(f1 - f2);
	}

};

#endif // _VN_EXTRA_MATH_H_